package com.example.backend.service;

import com.example.backend.entity.Business;

import java.util.List;

public interface BusinessService {
    //增
    Business save(Business business);
    //删
    void delete(Integer id);
    //查
    //整体查询
    List<Business> findAll();
    //单个查询
    //按业务编号查询
    List<Business> findById(Integer id);
    //按客户名称查询
    List<Business> findByCname(String cname);
    //按车辆名称查询
    List<Business> findByVname(String vname);
    //按司机名称查询
    List<Business> findByDname(String dname);
    //按租赁模式查询
    List<Business> findByMode(String mode);
    //按起始日期查询
    List<Business> findByStartDate(String startDate);
    //按结束日期查询
    List<Business> findByFinishDate(String finishDate);
    //改
    Business update(Business business);
}
